﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace IFWiki.Utils
{
    public static class IOUtils
    {
        /// <summary>
        /// Ensures the path exists. (Create it if it doesn't already)
        /// </summary>
        /// <param name="sourcePath">The source path.</param>
        public static void EnsurePathExists(string sourcePath)
        {
            if (!System.IO.Directory.Exists(sourcePath))
            {
                System.IO.Directory.CreateDirectory(sourcePath);
            }
        }
    }

}
